<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
    <head>
        <meta charset="UTF-8">
        <title>首页</title>
    </head>
    <body>
        <h1>首页</h1>
        <!--  这里会解析为主路径匹配     -->
        <a th:href="@{/hello/testRequestMapping}">测试RequestMapping注解的位置</a><br/>
        <a th:href="@{/hello/testRequestMappingValue01}">测试RequestMapping注解的value属性-->testRequestMappingValue01</a><br>
        <a th:href="@{/hello/testRequestMappingValue02}">测试RequestMapping注解的value属性-->testRequestMappingValue02</a><br>
        <a th:href="@{/hello/testMethodGet}">测试RequestMapping注解的method属性-->GET请求</a><br>
        <form th:action="@{/hello/testMethodPost}" method="post">
            <input type="submit" value="测试RequestMapping注解的method属性-->Post">
        </form>

        <a th:href="@{/hello/testGetMapping}">测试GetMapping注解的method属性--></a>

        <form method="put" th:action="@{/testPut}">
            <input type="submit" value="测试form表单是否能够发送put或delete请求">
        </form>

        <a th:href="@{/hello/testParam(username='admin')}">测试RequestMapping注解的params属性</a>
        <a th:href="@{/hello/testHeaders}">测试RequestMapping注解的header属性</a>

        <a th:href="@{/hello/a1a/testAnt}">测试RequestMapping注解的ant风格的路径</a>

        <a th:href="@{/testRest/1/admin}">测试路径中的占位符-->/testRest</a>
    </body>
</html>
